// 主容器
import MainContent from '@/components/common/MainContent'
// 子容器
import Channel from './channel'
import ItemIndustry from './industry'
import Bid from './bid'
import Feedback from './feedback'
import CdnRefresh from './cdn-refresh'
import KeywordManager from './keyword-manager'
import ClientManager from './client-manager'
import Kf53Data from './kf53-data'
import Consumption from './consumption'
import Perspective from './perspective'
import Idea from './idea'

const router = {
  path: '/operating-center',
  name: 'OperatingCenter',
  component: MainContent,
  children: [
    ...Channel.routers,
    ...ItemIndustry.routers,
    ...ClientManager.routers,
    ...Bid.routers,
    ...KeywordManager.routers,
    ...Idea.routers,
    ...Feedback.routers,
    ...CdnRefresh.routers,
    ...Kf53Data.routers,
    ...Consumption.routers,
    ...Perspective.routers
  ]
}

const menu = [
  Channel.menu,
  ItemIndustry.menu,
  ClientManager.menu,
  Bid.menu,
  KeywordManager.menu,
  Idea.menu,
  Feedback.menu,
  CdnRefresh.menu,
  Kf53Data.menu,
  Consumption.menu,
  Perspective.menu
]

export default {
  router,
  menu
}
